-- GENERATED SPELL FOR [Titanium Vanguard] --


function spell0_28838(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(58619,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28838', 582, 1)
end

function spell1_28838(pUnit, Event) --@Poison Tipped Spear,n/a--
pUnit:FullCastSpellOnTarget(59178,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28838', 10000, 1)
end

function spell2_28838(pUnit, Event) --@Poison Tipped Spear,n/a--
pUnit:FullCastSpellOnTarget(53059,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28838', 12000, 1)
end

function Sorts_28838(pUnit, Event)
local choix_sorts_28838 = math.random(0, 2)
if choix_sorts_28838 == 0 then
pUnit:RegisterEvent('spell0_28838', 1, 1)
end
if choix_sorts_28838 == 1 then
pUnit:RegisterEvent('spell1_28838', 1, 1)
end
if choix_sorts_28838 == 2 then
pUnit:RegisterEvent('spell2_28838', 1, 1)
end
end

function mob28838_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28838', math.random(1500, 3000), 1)
end

function mob28838_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28838_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28838_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28838, 1, 'mob28838_Action')
RegisterUnitEvent(28838, 2, 'mob28838_Leave')
RegisterUnitEvent(28838, 3, 'mob28838_Kill')
RegisterUnitEvent(28838, 4, 'mob28838_Die')
